package com.social.service;

import com.social.dao.LabelMapper;
import com.social.dao.model.Label;
import com.social.dao.model.LabelExample;
import com.social.daoEx.LabelMapperEx;
import com.social.daoEx.model.LabelEx;

import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LabelService {
    @Autowired
    private LabelMapper labelMapper;
    @Autowired
    private LabelMapperEx labelMapperEx;

    private static final Logger logger = Logger.getLogger(LabelService.class);

    public int countByExample(LabelExample example) {
        return this.labelMapper.countByExample(example);
    }

    public Label selectByPrimaryKey(String id) {
        return this.labelMapper.selectByPrimaryKey(id);
    }

    public List<Label> selectByExample(LabelExample example) {
        return this.labelMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.labelMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Label record) {
        return this.labelMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Label record) {
        return this.labelMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(LabelExample example) {
        return this.labelMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(Label record, LabelExample example) {
        return this.labelMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(Label record, LabelExample example) {
        return this.labelMapper.updateByExample(record, example);
    }

    public int insert(Label record) {
        return this.labelMapper.insert(record);
    }

    public int insertSelective(Label record) {
        return this.labelMapper.insertSelective(record);
    }

	public List<LabelEx> selectDetailList(Map<String, Object> map) {
		return labelMapperEx.selectDetailList(map);
	}

	public List<LabelEx> selectSimpleList(Map<String, Object> map) {
		return labelMapperEx.selectSimpleList(map);
	}

	public List<LabelEx> selectWebLabelList(Map<String, Object> map) {
		return labelMapperEx.selectWebLabelList(map);
	}

	public int sumLabelHeat(Map<String, Object> map) {
		return labelMapperEx.sumLabelHeat(map);
	}
}